home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.cs.arizona.edu
/
ftp.cs.arizona.edu.tar
/
ftp.cs.arizona.edu
/
icon
/
newsgrp
/
group99a.txt
/
000183_icon-group-sender _Thu Sep 2 13:19:32 1999.msg
< prev
next >
Wrap
Internet Message Format
|
2000-09-20
|
3KB
Return-Path: <icon-group-sender>
Received: (from root@localhost)
by baskerville.CS.Arizona.EDU (8.9.1a/8.9.1) id NAA00261
for icon-group-addresses; Thu, 2 Sep 1999 13:19:13 -0700 (MST)
Message-Id: <199909022019.NAA00261@baskerville.CS.Arizona.EDU>
From: "Frank Lhota" <lhotaf@lexma.meitech.com>
To: "Garry" <memphis@macconnect.com>, <icon-group@optima.CS.Arizona.EDU>
Subject: Re: Is open(..,"b") broken in MPW Icon 9.0?
Date: Thu, 2 Sep 1999 12:32:19 -0400
X-Priority: 3
X-MSMail-Priority: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
Errors-To: icon-group-errors@optima.CS.Arizona.EDU
Status: RO
The Icon file management routines are based on the C <stdio.h> facilitates.
The Icon open mode specifications are mapped to the C fopen mode parameter,
and unfortunately the available fopen modes vary from platform to platform.
Do you have a C compiler for the Macintosh MPW environment? If so, try to
see which C fopen modes will give you the desired results. From this, we can
figure out the how to fix the Icon run time code.
----- Original Message -----
From: Garry <memphis@macconnect.com>
To: <icon-group@optima.CS.Arizona.EDU>
Sent: Wednesday, September 01, 1999 11:32 PM
Subject: Is open(..,"b") broken in MPW Icon 9.0?
> The most up-to-date Icon available for the Macintosh MPW environment is
> version 9.0, which I think may have been implemented by Bob Alexander
> (email address?). I've implemented most of an outline processor / note
> organizer for MPW using Icon; maybe I'll proceed to try using it for
> keeping source code in outline form, BUT after more than a month of fun
> with Icon I've run into a problem!! I can't open a file for update
> (read/write). When I follow the Icon practice of opening my file with
> "b" mode I find that I can read it but I can not write to the file. For
> example if I execute
> f := open( "Testfile", "b" )
> seek( f )
> writes( f, "**" )
> where "Testfile" is a small test file created previously, then I get the
> message
> Run-time error 214
> input/output error
>
> I've tried specifying "r+" mode or "b+r" or "ub" mode without success.
> As a test I opened the same file in "w" mode and proved that I was able
> to write it (destroying the previous contents) but I can not find a way
> to write to random locations.
>
> BTW, is any progress being made on Icon 9.3 for Macintosh?
>
> Advice, or just sympathy, will be appreciated. Right now my fall-back
> solution is to rewrite the entire file just to update the 8 bytes which
> holds my note ID counter.
>
> --
> Garry
> Tech Writer & Freelance Programmer